<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 使用步骤: 1.将fonts文件夹放到根目录下
                  2.字体声明
                  3.使用span或者其他标签放置icommoon文件夹下demo.html打开后的小方框
                  4.在css中span设置font-family: 'icomoon'; 
                  */

        /* 字体声明 */
        @font-face {
            font-family: 'icomoon';
            src: url('fonts/icomoon.eot?fn6gwm');
            src: url('fonts/icomoon.eot?fn6gwm#iefix') format('embedded-opentype'),
                url('fonts/icomoon.ttf?fn6gwm') format('truetype'),
                url('fonts/icomoon.woff?fn6gwm') format('woff'),
                url('fonts/icomoon.svg?fn6gwm#icomoon') format('svg');
            font-weight: normal;
            font-style: normal;
            font-display: block;
        }
        span{
            font-family: 'icomoon';
            font-size: 100px;
            color: pink;
        }
    </style>
</head>

<body>
    <span></span>
    <span></span>
    <span></span>
</body>

</html>